package cn.xm.basic.service;

import cn.xm.basic.query.BaseQuery;
import cn.xm.basic.result.PageList;

import java.util.List;

public interface BaseService<T> {

    List<T> findAll();

    T findById(Long id);

    void add(T t);

    void update(T t);

    void delete(Long id);

    PageList<T> queryByPage(BaseQuery baseQuery);

    void batchDelete(List<Long> ids);
}
